import request from '@/utils/request'
export const ScenicSpotSearchService = (params) =>
  request.get('/api/scenicSpot/search/list/page', { params })

// 添加操作
export const ScenicSpotAddService = (data) =>
  request.post('/api/scenicSpot/add', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })

//编辑操作
export const ScenicSpotUpdateService = (data) =>
  request.post('/api/scenicSpot/update', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })

// 删除操作
export const ScenicDelService = (ids) =>
  request.post('/api/scenicSpot/delete', ids, {
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  })
// 审核功能
export const AuditScenicSpotsService = (params) =>
  request.post('/api/scenicSpot/audit', params, {
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  })
